﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace iDMS.Models
{
    [MetadataType(typeof(Department_Buddy))]
    public partial class Department
    {
        public string FullName2
        {
            get
            {
                return FullName + " (" + ShortName+")";
            }
        }          
    }

    public class Department_Buddy
    {
        
        //[Display(Name = "Planned Release Date")]
        //[Required(ErrorMessage = "Planned Release Date is required")]
        //public DateTime PlannedReleaseDate { get; set; }

        [Display(Name = "Full Name")]
        [Required(ErrorMessage = "Full Name is required")]
        public string FullName { get; set; }

        [Display(Name = "Short Name")]
        [Required(ErrorMessage = "Short Name is required")]
        public string ShortName { get; set; }

        [Display(Name = "Last Modified")]
        public System.DateTime LastModified { get; set; }

        [Display(Name = "Parent Department")]
        public System.Nullable<int> DepartmentParentID { get; set; }

        [Display(Name = "Supervisor")]
        public int SupervisorEmployeeID { get; set; }
    }
}